package com.haven.login.model;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.NamedNativeQuery;


import java.math.BigDecimal;


/**
 * The persistent class for the accounts database table.
 * 
 */
@NamedQuery(name = "getUser",
//callable = true,
query = "from Account a where a.acIdEmail=:accountMail and a.acStPassword=:accountPwd" 
//readOnly = true,
//cacheable = false,
//resultClass = Account.class
)

@Entity
@Table(name="accounts")
public class Account implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="ACCOUNTS_ACIDACCOUNTPK_GENERATOR", sequenceName="SEQ_TABLA_SE")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ACCOUNTS_ACIDACCOUNTPK_GENERATOR")
	@Column(name="ac_id_account_pk")
	private String acIdAccountPk;

	@Column(name="ac_id_state")
	private Long acIdState;

	@Column(name="ac_st_password")
	private String acStPassword;
	
	@Column(name="ac_id_email")
	private String acIdEmail;

	@Column(name="type_accounts_ta_id_type_account_pk")
	private Integer typeAccountsTaIdTypeAccountPk;

	public Account() {
	}

	public String getAcIdAccountPk() {
		return this.acIdAccountPk;
	}

	public void setAcIdAccountPk(String acIdAccountPk) {
		this.acIdAccountPk = acIdAccountPk;
	}

	
	public String getAcStPassword() {
		return this.acStPassword;
	}

	public void setAcStPassword(String acStPassword) {
		this.acStPassword = acStPassword;
	}

	public Integer getTypeAccountsTaIdTypeAccountPk() {
		return this.typeAccountsTaIdTypeAccountPk;
	}

	public void setTypeAccountsTaIdTypeAccountPk(Integer typeAccountsTaIdTypeAccountPk) {
		this.typeAccountsTaIdTypeAccountPk = typeAccountsTaIdTypeAccountPk;
	}

	public Long getAcIdState() {
		return acIdState;
	}

	public void setAcIdState(Long acIdState) {
		this.acIdState = acIdState;
	}

	public String getAcIdEmail() {
		return acIdEmail;
	}

	public void setAcIdEmail(String acIdEmail) {
		this.acIdEmail = acIdEmail;
	}
	

}